package com.codeduck.kafka.pojo;

/**
 * @auther Mahone Yan
 * @date 2023/5/7
 */
public enum TopicHandler {
    BILL_TOPIC("APP_BILL_NOTIFICATION_TOPIC", "",false, "账单通知Topic"),
    SERVICE_LOG_TOPIC("APP_SERVICE_LOG_TOPIC", "ServerLogMessageHandler", true,"应用日志收集Topic"),
    ACCT_DETAIL_TOPIC("APP_ACCT_DETAIL_TOPIC", "AcctDetailHandler",false, "交易明细Topic"),
    ;

    private String topic;
    private String handler;
    private boolean batchHandler;
    private String desc;

    TopicHandler(String topic, String handler, boolean batchHandler, String desc) {
        this.topic = topic;
        this.handler = handler;
        this.batchHandler = batchHandler;
        this.desc = desc;
    }

    public String getTopic() {
        return topic;
    }

    public String getHandler() {
        return handler;
    }

    public boolean isBatchHandler() {
        return batchHandler;
    }
}
